<template>
	<view>
		
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			}
		},
		
		onLoad(){
			//判断是否同意用户协议
			// //#ifdef APP-VUE
			if(!uni.getStorageSync('privacy')){
				console.log('未同意')
				//跳转弹窗页
				uni.redirectTo({
					url: '/pages/privacy-agreement-layer/index'
				})
			}else{
				console.log('进入')
				uni.switchTab({
					url:'/pages/index/index'
				})
			}
			// //#endif
			
			// #ifdef H5
			uni.switchTab({
				url:'/pages/index/index'
			})
			// #endif
		},
		methods: {
			
		}
	}
</script>

<style>

</style>
